package cn.tedu.project.oa.repair.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class RepairSaveParam {
    @ApiModelProperty(value = "维修单编号")
    private Long id;
    @ApiModelProperty(value = "申请者员工编号")
    private Long userId;
    @ApiModelProperty(value = "申请者上级编号")
    private Long parentId;
    @ApiModelProperty(value = "资产编号",required = true)
    private Long assetId;
    @ApiModelProperty(value = "资产识别码",required = true)
    private String assetCode;
    @ApiModelProperty(value = "资产类型")
    private String assetType;
    @ApiModelProperty(value = "品牌")
    private String assetBrand;
    @ApiModelProperty(value = "规格")
    private String assetSpecifications;
    @ApiModelProperty(value = "所属部门编号")
    private Long departmentId;
    @ApiModelProperty(value = "维修数量",required = true)
    private Long num;
    @ApiModelProperty(value = "审批状态")
    private Integer status;
    @ApiModelProperty(value = "资产状态 空闲1 占用2 待修3 修理中4 报废5")
    private Integer assetStatus;
    @ApiModelProperty(value = "申请原因",required = true)
    private String reason;
    @ApiModelProperty(value = "预算费用",required = true)
    private Double priceEstimate;
    @ApiModelProperty(value = "实际费用")
    private Double priceActual;
    @ApiModelProperty(value = "备注")
    private String remark;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "申请时间")
    private Date applicationTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "完成修理时间")
    private Date repairedTime;
    @ApiModelProperty(value = "驳回原因")
    private String rejectReason;
}
